package com.emep.changzhi.analyse.entity.datamonitor.realtime;

import lombok.Data;
import org.springframework.data.cassandra.core.cql.Ordering;
import org.springframework.data.cassandra.core.cql.PrimaryKeyType;
import org.springframework.data.cassandra.core.mapping.*;

import java.io.Serializable;

/**
 * @author xy
 * @Description: 餐饮油烟监测_实时数据表
 * @date 2018/2/27 11:10
 * @version V1.0
 */
@Data
@Table("data_realtime_food_fume")
public class FoodFumeRealtime implements Serializable {
    private static final long serialVersionUID = 8605212087969528172L;

    @PrimaryKeyColumn(name = "id", ordinal = 0, type = PrimaryKeyType.PARTITIONED)
    private String  id;
    /**
     *行政区划code
     */
    @Column(value = "area_code")
    private String areaCode;
    /**
     * 设备mn号
     */
    @Column(value = "mn")
    private String mn;
    /**
     *报文时间
     */
    @PrimaryKeyColumn(name = "packet_date", ordinal = 1, type = PrimaryKeyType.CLUSTERED, ordering = Ordering.DESCENDING)
    private String packetDate;
    /**
     *SO2污染物简称_检测值
     */
    @Column(value = "SO2_value" )
    private String SO2_value;
    /**
     *SO2污染物简称_状态
     */
    @Column(value = "SO2_status" )
    private String SO2_status;
    /**
     *创建时间
     */
    @Column(value = "create_date" )
    private String createDate = String.valueOf(System.currentTimeMillis());
}
